<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Agp\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;

/**
 * Agp\CoreBundle\Entity\EventoLista
 *
 * @ORM\Table(name="evento_lista")
 * @ORM\Entity(repositoryClass="Agp\CoreBundle\Repository\EventoListaRepository")
 */
class EventoLista {
    
    /**
     * @var object
     * 
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity="Evento", fetch="LAZY", inversedBy="listas")
     * @ORM\JoinColumn(name="cod_evento", referencedColumnName="cod_evento", onDelete="Cascade")
     * 
     */
    protected $evento;
    
    /**
     * @var object
     * 
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity="ListaPreco", fetch="LAZY", inversedBy="eventos")
     * @ORM\JoinColumn(name="cod_lista_preco", referencedColumnName="cod_lista_preco", onDelete="Cascade")
     * 
     */
    protected $lista;
    
    /**
     *
     * @ORM\Column(name="ordem", type="integer", nullable=true) 
     */
    protected $ordem;

    public function getEvento() {
        return $this->evento;
    }

    public function setEvento($evento) {
        $this->evento = $evento;
    }

    public function getLista() {
        return $this->lista;
    }

    public function setLista($lista) {
        $this->lista = $lista;
    }
    
    public function getOrdem() {
        return $this->ordem;
    }

    public function setOrdem($ordem) {
        $this->ordem = $ordem;
    }

}

?>
